<?php

function CheckCaptcha($publicKey, $privateKey)
{
    $result = FALSE;

    $secretstring = "A very, nano very secret string which is used to generate a md5-key!";

    if(strtolower($privateKey) == strtolower(substr(md5(md5($secretstring).$publicKey), 16 - 5 / 2, 4)))
    {
         $result = TRUE;
    }
    return $result;
}


?>